package com.cjkj.equipment.service.impl;

import com.cjkj.equipment.domain.dto.EquipmentCountReq;
import com.cjkj.equipment.domain.vo.EquipmentCountVo;
import com.cjkj.equipment.mapper.EquipmentCountMapper;
import com.cjkj.equipment.service.EquipmentCountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EquipmentCountServiceImpl implements EquipmentCountService {

    @Resource
    private EquipmentCountMapper equipmentCountMapper;

    @Override
    public List<EquipmentCountVo> getCountList(EquipmentCountReq params) {
        return equipmentCountMapper.selectCountList(params);
    }

    @Override
    public List<EquipmentCountVo> getCountByHospital(EquipmentCountReq params) {
        return equipmentCountMapper.selectCountByHospital(params);
    }
}
